package start;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;

@Configuration
@Import(AppConfigB.class)
//@ImportResource("classpath:/start/properties-config.xml")
public class AppConfigA {
    @Value("${a.username}")
    private String username;
    @Value("${a.password}")
    private String password;
    public @Bean DataSource dataSource() {
          return new DataSource(username,password);
      }
}
